package mju.cn.sixweek.util;

import mju.cn.sixweek.mapper.RoleMapper;
//import mju.cn.sixweek.mapper.RoleMapperImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @program: java-ee_31
 * @description:
 * @author: HP
 * @time: 2020/10/20 21:36
 */
public class AppContext {
    public static RoleMapper TAG() {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("spring-cfg.xml");
        RoleMapper roleMapper = ctx.getBean(RoleMapper.class);
        return roleMapper;
    }
}
